import { dynamicRouteConfigs } from '@/config/router.config.js'

const getters = {
  // app module
  device: state => state.app.device,
  theme: state => state.app.theme,
  color: state => state.app.color,
  multiTab: state => state.app.multiTab,
  // user module
  name: state => state.user.name,
  nick: state => state.user.nick,
  root: state => state.user.root,
  dept: state => state.user.dept,
  role: state => state.user.role,
  // dict module
  dataScopeList: state => state.dict.dataScopeList,
  dataScopeMap: state => state.dict.dataScopeMap,
  productCategoryList: state => state.dict.productCategoryList,
  productCategoryMap: state => state.dict.productCategoryMap,
  protocolList: state => state.dict.protocolList,
  protocolMap: state => state.dict.protocolMap,
  propDataTypeList: state => state.dict.propDataTypeList,
  propDataTypeMap: state => state.dict.propDataTypeMap,
  propDataMethodList: state => state.dict.propDataMethodList,
  propDataMethodMap: state => state.dict.propDataMethodMap,
  deviceTypeList: state => state.dict.deviceTypeList,
  deviceTypeMap: state => state.dict.deviceTypeMap,
  deviceTypeColorMap: state => state.dict.deviceTypeColorMap,
  pushTargetList: state => state.dict.pushTargetList,
  pushTargetMap: state => state.dict.pushTargetMap,
  pushTargetColorMap: state => state.dict.pushTargetColorMap,
  actionAlarmTypeList: state => state.dict.actionAlarmTypeList,
  actionAlarmTypeMap: state => state.dict.actionAlarmTypeMap,
  actionAlarmLevelList: state => state.dict.actionAlarmLevelList,
  actionAlarmLevelMap: state => state.dict.actionAlarmLevelMap,
  actionAlarmLevelColorMap: state => state.dict.actionAlarmLevelColorMap,
}

export default getters
